home *** CD-ROM | disk | FTP | other *** search
/ NeXT Education Software Sampler 1992 Fall / NeXT Education Software Sampler 1992 Fall.iso / Programming / Classes / CryptSums / cryptsum.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-05-16  |  437 b   |  12 lines

  1. /* cryptsum.h -- copyright 1992 by C.D.Lane */
  2.  
  3. #define CS_SEGMENT "__CRYPTSUM"
  4. #define CS_SECTION "__table"
  5.  
  6. typedef enum {CS_SUCCESS = 0, CS_NOMATCH, CS_NOSECTION, CS_NOCHECKSUM, CS_NOENTRY} CS_STATUS;
  7.  
  8. extern char *cs_cryptkey(const char *key, unsigned short checksum);
  9. extern unsigned short cs_checksum(unsigned short checksum, unsigned char byte);
  10. extern int cs_checkkey(const char *segment, const char *section, const char *key);
  11.  
  12.